<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title></title>
    <link rel="stylesheet" href="../../build/aui-css/css/bootstrap.css">
    <script src="../../build/aui/aui.js"></script>
</head>
<body>
    <h1>AlloyUI - Node demo</h1>
    <h2 id="toggleColor" style="cursor: pointer;">Click me!</h2>
    <script>
    YUI({ filter:'raw' }).use('aui-node', function(Y) {

      var node = Y.one('#toggleColor');

      node.on('click', function() {
        var randomColor = Math.floor(Math.random() * 16777215).toString(16);
        node.setStyle('background', '#' + randomColor);
      });

    });
    </script>
</body>
</html>




